package com.baibei.model.event;

/**
 * 登录事件
 * Created by ChenRui on 2017/8/10 0010 19:09.
 */
public class LoginEvent {
    protected boolean mIsLogin;
    protected boolean mIsLogout;
    //是否是刚注册成功
    protected boolean mIsRegister;

    public LoginEvent() {
    }

    public LoginEvent(boolean isLogin) {
        mIsLogin = isLogin;
    }

    public LoginEvent(boolean isLogin,boolean isRegister){
        mIsLogin = isLogin;
        mIsRegister = isRegister;
    }

    public boolean isRegister() {
        return mIsRegister;
    }

    public void setRegister(boolean mIsRegister) {
        this.mIsRegister = mIsRegister;
    }

    public boolean isLogin() {

        return mIsLogin;
    }

    public void setLogin(boolean login) {
        mIsLogin = login;
    }

    public boolean isLogout() {
        return mIsLogout;
    }

    public void setLogout(boolean logout) {
        mIsLogout = logout;
    }

    @Override
    public String toString() {
        return "LoginEvent{" +
                "mIsLogin=" + mIsLogin +
                ", mIsLogout=" + mIsLogout +
                ", mIsRegister=" + mIsRegister +
                '}';
    }
}
